package com.fjnldx.mes.controller.workerRecord;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjnldx.mes.domain.domainReq.EmploymentHistoryDataReq;
import com.fjnldx.mes.domain.domainRes.Result;
import com.fjnldx.mes.service.workerRecord.WorkerRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/historicalData/workers")
@Api(value = "用工记录", tags = "用工记录")
public class WorkerRecordController {

    @Resource
    private WorkerRecordService workerRecordService;

    @GetMapping("/employmentHistoryData")
    @ApiOperation(value = "用工历史数据查询", notes = "Api")
    public Result getEmploymentHistoryData(EmploymentHistoryDataReq employmentHistoryDataReq, Page page){
        return workerRecordService.getEmploymentHistoryData(employmentHistoryDataReq, page);
    }
}
